#for
name = "itheima is a brand of itcast a"
count = 0
for n in name :
    if n == "a":
        count += 1
print(f"有{count}个a")

# range使用
for n in range(0,50,2):
    print(n ,end='-')
print()
for n in range(1,11):
    print(f"送你第{n}朵玫瑰花")

forcount = 0
for n in range(1,100):
    if n%2 == 0 :
        forcount += 1
print(f"有{forcount}个偶数")

# 九九乘法表
i = 1
for i in range(1, 10):
    j = 1
    for j in range(1, i+1):
        print(f"{ j } * { i } = { j * i }\t",end='')
    print()
